from django.urls import path
from .views import *
from rest_framework import routers

router = routers.DefaultRouter()
router.register('goods', GoodsView)
urlpatterns = [
    path('recom/', RecommendView.as_view()),
    path('comm/', CommentView.as_view()),
    path('mess/', MessageView.as_view()),
    path('douban/', DoubanCommentView.as_view()),
    path('es/', DataView.as_view()),
    path('search/', Search.as_view()),
    path('sendadd/', SendAddView.as_view()),
] + router.urls
